﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Wq.MeetingService.Entities
{
    [Tenant("meeting")]
    [SugarTable("Wq_DiningRoom")]
    public class DiningRommInfo
    {
        /// <summary>
        /// Id 
        /// </summary>
        [SugarColumn(ColumnDescription = "Id", IsPrimaryKey = true, IsIdentity = true)]
        public long Id { get; set; }

        /// <summary>
        /// 场地Id
        /// </summary>
        [SugarColumn(ColumnDescription = "餐厅Id")]
        public int VenueId { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        [SugarColumn(ColumnDescription = "餐厅名称")]
        public string Name { get; set; }

        /// <summary>
        /// 面积
        /// </summary>
        [SugarColumn(ColumnDescription = "面积", ColumnDataType = "decimal(10,2)")]
        public decimal Area { get; set; }

        /// <summary>
        /// 席位
        /// </summary>
        [SugarColumn(ColumnDescription = "席位")]
        public int People { get; set; }

        /// <summary>
        /// 楼层
        /// </summary>
        [SugarColumn(ColumnDescription = "楼层")]
        public int Foor { get; set; }

        /// <summary>
        /// 长度
        /// </summary>
        [SugarColumn(ColumnDescription = "长度", ColumnDataType = "decimal(10,1)")]
        public decimal Length { get; set; }

        /// <summary>
        /// 宽度
        /// </summary>
        [SugarColumn(ColumnDescription = "宽度", ColumnDataType = "decimal(10,1)")]
        public decimal Width { get; set; }

        /// <summary>
        /// 高度
        /// </summary>
        [SugarColumn(ColumnDescription = "高度", ColumnDataType = "decimal(10,1)")]
        public decimal Height { get; set; }
        /// <summary>
        /// 人均
        /// </summary>
        [SugarColumn(ColumnDescription = "人均", ColumnDataType = "decimal(10,2)")]
        public decimal PerCapita { get; set; }

        /// <summary>
        /// 营业开始
        /// </summary>
        [SugarColumn(ColumnDescription = "营业开始", IsNullable = true)]
        public TimeSpan? BusinessStartDate { get; set; }
        /// <summary>
        /// 营业结束
        /// </summary>
        [SugarColumn(ColumnDescription = "营业结束", IsNullable = true)]
        public TimeSpan? BusinessEndDate { get; set; }
        /// <summary>
        /// 包间个数
        /// </summary>
        [SugarColumn(ColumnDescription = "包间个数")]
        public int PrivateRoomCount { get; set; }

        /// <summary>
        /// 价格
        /// </summary>
        [SugarColumn(ColumnDescription = "价格", ColumnDataType = "decimal(10,2)")]
        public decimal Price { get; set; }

        /// <summary>
        /// 排序序号
        /// </summary>
        [SugarColumn(ColumnDescription = "排序序号")]
        public int Sequence { get; set; }

        /// <summary>
        /// 包间
        /// </summary>
        [Navigate(NavigateType.OneToMany, nameof(PrivateRoomInfo.DiningRommId))]
        public List<PrivateRoomInfo> PrivateRooms { get; set; }

        /// <summary>
        /// 图片
        /// </summary>
        [Navigate(NavigateType.OneToMany, nameof(MeetingThumbnailInfo.SourceRoomId))]
        public List<MeetingThumbnailInfo> Thumbnails { get; set; }
    }

}
